/**********************************************************************
 *@Project： cloudDemo
 *@File: DemoInitListener
 *@Date: 2017/4/13
 *@Copyright (C) 2013-2017 http://www.posun.cn. All Rights Reserved.
 ***********************************************************************
 *注意： 本内容仅限于深圳市普盛实业有限公司内部使用，禁止外泄
 **********************************************************************
 */
package com.posun.edu.system.ext;

import com.posun.cloud.tracing.enums.LogType;
import com.posun.framework.Constants;
import com.posun.framework.log.AresLog;
import com.posun.framework.log.LogBuilder;
import org.springframework.beans.factory.annotation.Value;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

/**
 * <p>
 * TODO<br>
 *
 * @author YL
 * @version 1.0
 * @createTime 2017/4/13 12:32
 * @ChangeLog
 */
@WebListener
public class DemoInitListener implements ServletContextListener {

    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        AresLog.info(new LogBuilder(DemoInitListener.class, LogType.TRACE, "服务"+Constants.APP_NAME+"启动完毕..."));
    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {

    }
}
